package org.springmole.business.bean.query;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElementWrapper;

import org.springmole.business.bean.ResultData;
import org.w3c.dom.Element;


@XmlAccessorType(XmlAccessType.FIELD)
public class QueryResultData extends ResultData {

	
	@XmlAttribute(name="total")
	private Long total = new Long(0);
	
	
	@XmlElementWrapper(name="RowList")
	@XmlAnyElement
	private List<Element> queryRowList = new ArrayList<Element>();
	
	
	public QueryResultData() {
	}
	
	public QueryResultData(String name) {
		super(name);
	}
	
	
	public List<Element> getQueryRowList() {
		return queryRowList;
	}
	public void setQueryRowList(List<Element> queryRowList) {
		this.queryRowList = queryRowList;
	}
	
	
	public Long getTotal() {
		return total;
	}
	public void setTotal(Long total) {
		this.total = total;
	}
}
